package com.ef.service;

import java.util.List;

import com.ef.domain.School;
import com.ef.domain.User;
import com.ef.util.CustomExample;
import com.ef.util.PaginationSupport;

public interface UserService extends BaseService {

	public User getUserByLoginName(String loginName);
	
	//根据座机登录
	public User getUserByCaller(String caller);
	
	public String getPasswordByLoginName(String loginName);
	
	public PaginationSupport<User> findByExample(
			CustomExample<User> example, int startIndex, int pageSize);
	
	public void saveOrUpdate(User entity);
	
	public void delete(User entity); 
	
	public User findById(Long id);
	
	public List<User> findAllTm();
	
	public List<User> findAllCc();
	
	public List<User> findAllCr();
	
	public List<User> findAllCcSameSchool(School school);
	
	public List<User> findAllCrSameSchool(School school);
	
	public User findByWorkNo(String workNo);
	
	public List<User> findByAnything(String qitem,int max);
	
	public List<User> findByAnythingWithRolename(String rolename,String qitem,int max);
	
	public List<User> findAllCm();
}
